﻿using LPLS.Commons.DBModule;
using SqlSugar;
using System;

namespace LPLS.DBEntities.DbModels
{
    // 用户实体类
    [DatabaseKey(DatabaseEnum.SqliteConfig)]
    [SugarTable("Users")]
    public class User
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(Length = 100, IsNullable = false)]
        public string Name { get; set; }

        [SugarColumn(Length = 255, IsNullable = false)]
        public string Email { get; set; }

        [SugarColumn(IsNullable = false)]
        public DateTime CreatedAt { get; set; } = DateTime.Now;

        [SugarColumn(IsNullable = true)]
        public DateTime? LastLogin { get; set; }
    }
}